package vip.xiaonuo.modular.manage.biuserbusiness.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import vip.xiaonuo.modular.manage.biuserbusiness.entity.BiUserTrade;
import org.springframework.stereotype.Service;
import vip.xiaonuo.modular.manage.biuserbusiness.mapper.BiUserTradeMapper;
import vip.xiaonuo.modular.manage.biuserbusiness.service.BiUserTradeService;

import java.util.List;

/**
 * (BiUserTrade)表服务实现类
 *
 * @author makejava
 * @since 2022-08-10 18:20:14
 */
@Service("biUserTradeService")
public class BiUserTradeServiceImpl extends ServiceImpl<BiUserTradeMapper, BiUserTrade> implements BiUserTradeService {

    @Override
    public List<BiUserTrade> tradeList(Long storeId, Long userId) {
        LambdaQueryWrapper<BiUserTrade> wrapper = new LambdaQueryWrapper();
        wrapper.eq(BiUserTrade::getStoreId,storeId);
        wrapper.eq(BiUserTrade::getUserId,userId);
        return this.getBaseMapper().selectList(wrapper);
    }
}

